package com.recsmile.sgs.client.entity;

import java.io.Serializable;

public class PlayerInfo implements Serializable {
	
	private static final long serialVersionUID = -6855827509699547590L;
	
	private final String name;
	private final int position;
	
	public PlayerInfo(String name,int position) {
		this.name = name;
		this.position = position;
	}
	
	public String getName() {
		return name;
	}
	
	public int getPosition() {
		return position;
	}
	
	@Override
	public int hashCode() {
		return Integer.toString(position).hashCode();
	}
	
	@Override
	public boolean equals(Object obj) {
		return obj instanceof PlayerInfo
			? position == ((PlayerInfo) obj).position
			: false;
	}
	
	@Override
	public String toString() {
		return "Player '" + name + "' at position " + position;
	}

	public PlayerCompleteServer getNext() {
		// TODO Auto-generated method stub
		return null;
	}
	
}